import { App } from "vue";
const context = require.context("@/components", true, /.vue$/);
export default {
    install(vm: App) {
        const keys: any[] = context.keys().map(item => item.match(/\.\/(.+).vue$/));
        keys.forEach((item: RegExpMatchArray) => {
            vm.component(item[1], context(item[0]).default);
        });
    },
};
